import {createBrowserRouter} from 'react-router-dom'
import Home from '../views/Home/index'
import Login from '../views/Login/index'
import Error from '../views/404/index'
import Xq from '../views/Xq/index'
const router=createBrowserRouter([
    {
     path:'/home',
     element:<Home></Home>
    },
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/xq/:id',
        element:<Xq></Xq>
    },
    {
        path:'*',
        element:<Error></Error>
    },
    
])
export default router